{{foreach from=$shopname item=li key=key}}
    <h4>{{$key}}</h4>
    <hr>

    {{foreach from=$li item=res key=key2}}
        <div style="width:120px; float:left;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onclick="checkBox('{{$key}}{{$key2}}')" class="{{if in_array($res.name,$select_store_arr)}}selected{{/if}}">
        <input type="checkbox" name="shopID[]" id="{{$key}}{{$key2}}" {{if in_array($res.name,$select_store_arr)}}checked{{/if}} value="{{$res.name}}|{{$res.id}}"  />
        {{$res.name}}</div>
        &nbsp;&nbsp;
    {{/foreach}}
    <br>
<hr  style="clear:both;">
<br>
{{/foreach}} 